package com.xcu.mybatis.sqlsession.defaulte;

import com.xcu.mybatis.cfg.Configuration;
import com.xcu.mybatis.sqlsession.SqlSession;
import com.xcu.mybatis.sqlsession.SqlSessionFactory;

public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration cfg;

    public DefaultSqlSessionFactory(Configuration cfg){
        this.cfg = cfg;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(cfg);
    }
}
